package com.zjc.mymq.common.event;


import com.zjc.mymq.common.event.model.Event;

/**
 * @author zjc
 * @date Created in 14:24 2024/6/4
 *
 */
public interface Listener<E extends Event> {

    /**
     * 回调通知
     *
     * @param event
     */
    void onReceive(E event) throws Exception;
}
